package com.example.secondhandsysapi.Vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

@Data
public class Money {
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private List<Date> order_finishtime  ;  // 订单完成日期，不允许为空
    private List<Double> total_price;                  // 订单总价，不允许为空

    public List<Date> getorder_finishtime() {
        if (order_finishtime == null) {
            order_finishtime = new ArrayList<>(); // 对 registration_date 进行初始化
        }
        return order_finishtime;
    }
    public void setorder_finishtime(List<Date> orderfinishtimes) {
        this.order_finishtime = orderfinishtimes;
    }
    public List<Double> gettotal_price() {
        if (total_price == null) {
            total_price = new ArrayList<>();
        }
        return total_price;
    }
    public void settotal_price(List<Double> totalprice) {
        this.total_price = totalprice;
    }
}
